﻿using System.ServiceProcess;
using Noria.Web.MyMSDN.Tasks;

namespace Noria.Web.Spider
{
    public partial class MmService : ServiceBase
    {
        private readonly NTask _spider = new SpiderTask();

        public MmService()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            _spider.Start();
        }

        protected override void OnStop()
        {
            _spider.Stop();
        }
    }
}
